package org.brave.mybatis.service;

import java.io.Serializable;
import java.util.List;

/**
 * @author zhanghn
 * @since 2025/01/10
 */
public interface BaseService<PK extends Serializable, T> {
    List<T> listAll();

    T getById(PK id);

    int save(T entity);

    int updateById(T entity);

    int deleteById(PK id);
}
